nfs: add snapshot-backed (shallow) read-only volume support#6193
nfs: add snapshot-backed (shallow) read-only volume support#6193Rakshith-R wants to merge 1 commit into
Conversation
Remove the hardcoded `backingSnapshot = "false"` override in the NFS controller, enabling NFS volumes to use CephFS snapshot-backed (shallow) read-only volumes. This avoids expensive data cloning when read-only access to snapshot contents is needed. Changes: - Expose `backingSnapshotRoot` in CephFS volume context so the NFS controller can construct the correct export path pointing to the snapshot data directory. - Remove the `backingSnapshot` blocker in NFS CreateVolume and adjust the NFS export path to include the backing snapshot root for snapshot-backed volumes. - Add three NFS e2e tests: snapshot-backed volume, backing snapshot as false, and RWX clone from ROX PVC. Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: Rakshith R <rar@redhat.com>
|
/test ci/centos/mini-e2e/k8s-1.35 |
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in two weeks if no further activity occurs. Thank you for your contributions. |
|
This pull request now has conflicts with the target branch. Could you please resolve conflicts and force push the corrected changes? 🙏 |
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in two weeks if no further activity occurs. Thank you for your contributions. |
|
This pull request now has conflicts with the target branch. Could you please resolve conflicts and force push the corrected changes? 🙏 |
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in two weeks if no further activity occurs. Thank you for your contributions. |
Describe what this PR does
Remove the hardcoded
backingSnapshot = "false"override in the NFS controller, enabling NFS volumes to use CephFS snapshot-backed (shallow) read-only volumes. This avoids expensive data cloning when read-only access to snapshot contents is needed.Changes:
backingSnapshotRootin CephFS volume context so the NFS controller can construct the correct export path pointing to the snapshot data directory.backingSnapshotblocker in NFS CreateVolume and adjust the NFS export path to include the backing snapshot root for snapshot-backed volumes.